# 解包位置参数为元组
def sum_all(*args):
    return sum(args)

print(sum_all(1, 2, 3))  # 输出 6

# 解包关键字参数为字典
def print_info(**kwargs):
    for key, value in kwargs.items():
        print(f"{key}: {value}")

print_info(name="Alice", age=30)